package heliotrope.utils.mission
{
	import flash.events.EventDispatcher;

	public class Mission
	{
		protected var _closure:Function;
		protected var _params:Array;
		protected var _id:uint;
		protected var _name:String;
		protected var _weight:uint;
		public function Mission(closure_:Function, params_:Array, missionName_:String = "", weight_:uint=1)
		{
			_closure	= closure_;
			_params		= params_;
			_name		= missionName_;
			_weight		= weight_;
		}

		public function set id(value:uint):void
		{
			_id = value;
		}
		
		public function get id():uint
		{
			return _id;
		}
		
		public function get closure():Function
		{
			return _closure;
		}
		
		public function get params():Array
		{
			return _params;
		}
		
		public function get weight():uint
		{
			return _weight;
		}  
		
		public function toString():String
		{
			return "missionid:"+_id+"; \t|name:"+_name;
		}
	}
}